package com.tinem.platform.web.file;

import com.baidu.fsg.uid.annotation.EnableCacheUid;
import com.tinem.platform.module.starter.jpa.annotation.EnableJpa;
import com.tinem.platform.module.starter.sdk.annotation.EnableJWK;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author fengzhihao
 * @version v1
 * @program: platform
 * @className WebLinkApplication
 * @description TODO
 * @site 
 * @company 
 * @create 2020-07-08 19:48
 */
@Slf4j
@EnableJWK
@EnableCacheUid
@EnableJpa
@ServletComponentScan
@SpringBootApplication
@EnableDiscoveryClient
public class FileWebApplication {
    public static void main(String[] args) {
        long startTime = System.currentTimeMillis();

        SpringApplication.run(FileWebApplication.class, args);

        long endTime = System.currentTimeMillis();
        System.out.println("start success; duration:("+ (endTime - startTime) +");startTime:("+startTime+");endTime:("+ endTime +")");
        log.info("start success; duration:({});startTime:({});endTime:({})",(endTime - startTime),startTime,endTime);

    }
}
